package org.example.coupon.dao;


import org.apache.ibatis.annotations.Param;
import org.example.coupon.entity.HomeAdvertiseEntity;
import org.example.coupon.vo.FrontAdvertiseVo;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author xiaojie_cc
 * @version 1.0
 */
public interface HomeAdvertiseDao{

    // 添加首页广告轮播
    int addHomeAdvertise(HomeAdvertiseEntity homeAdvertise);

    // 查询广告列表
    List<HomeAdvertiseEntity> getHomeAdvertiseList(@Param("name") String name, @Param("status") Integer status);

    HomeAdvertiseEntity getHomeAdvertiseInfo(@Param("id") Long id);

    int updateAdvertiseInfo(HomeAdvertiseEntity homeAdvertise);

    List<FrontAdvertiseVo> getHomeFrontAdvertiseList(@Param("nowTime") LocalDateTime nowTime, @Param("status") int status);

    List<String> urlList(@Param("ids") List<Long> ids);

    int deletes(@Param("ids") List<Long> ids);
}